import request from "@/utils/request";
const urlPrefix = '';
//登录页面接口
export function getInfo() {
  return request({
    url: urlPrefix+"/get",
    method: "get"
  });
}

export function updateInfo(data) {
  return request({
    url: urlPrefix+"/update",
    method: "post",
    data: data
  });
}

export function updatePassword(data) {
  return request({
    url: urlPrefix+"/update-pwd",
    method: "post",
    data: data
  });
}

// 退出登录接口
export function logout() {
  return request({
    url: urlPrefix+"/logout",
    method: "get"
  });
}

export function menus(){
  return request({
    url: urlPrefix+"/menus",
    method: "get"
  });
}

export function trees(){
  return request({
    url: urlPrefix+"/trees",
    method: "get"
  });
}
